package svgedit.germangui.actions;

import java.awt.event.ActionEvent;
import java.util.ArrayList;

import javax.swing.AbstractAction;
import javax.swing.event.UndoableEditEvent;
import javax.swing.undo.UndoManager;

import svgedit.germangui.GermanFrame;
import svgedit.gui.Frame;
import svgedit.svg.SVGElement;
import svgedit.svg.UndoPaint;

public class RedoAction extends AbstractAction {



	GermanFrame frame;
	
    public RedoAction(GermanFrame germanFrame) {
        super("Redo");
        this.frame = germanFrame;
       ;
    }
	
	
	@Override
	public void actionPerformed(ActionEvent e) {
		frame.getView().undoManager.redo();
        frame.undoAction.setEnabled(frame.getView().undoManager.canUndo());
        frame.redoAction.setEnabled(frame.getView().undoManager.canRedo());

		frame.getView().repaint();
		}
	
}


